package com.zhdl.hardware_modules.repository;

import com.project.common.repository.BaseRepository;
import com.zhdl.hardware_modules.entity.ProcessStep;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ProcessStepRepository extends BaseRepository<ProcessStep,Integer> {
    @Query(value = "select ps from ProcessStep ps where ps.processId  = :processId")
    List<ProcessStep> findStepByProcessId(@Param("processId")int processId);
}
